<template>
  <div id="app" :class="{ 'fullscreen-mode': $route.meta.fullscreen }">
    <Navbar v-if="!$route.meta.hideNavbar" />
    <router-view />
    <Footer v-if="!$route.meta.hideFooter" />
  </div>
</template>

<script setup>
import Navbar from './components/Navbar.vue'
import Footer from './components/Footer.vue'
</script>

<style scoped>
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app.fullscreen-mode {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.router-view {
  flex: 1;
}
</style>